# name = "";
# while not name:
# 	name = raw_input("Please enter your name: ")
# print	"Hello ,%s!" % name;




# name = "";
# while not name.isspace():
# 	name = raw_input("Please enter your name: ")
# print	"Hello ,%s!" % name;

# name = "";
# while not name.strip():
# 	name = raw_input("Please enter your name: ")
# print	"Hello ,%s!" % name;
# 2------


# for number in range(1,10):
# 	print number;

# d = {"x":1, "y":2,"z":3}
# for key in d:
# 	print key ,"corresponds to",d[key]; 

# d = {"x":1, "y":2,"z":3}
# for k,v in d.items():
# 	print k,"corresponds to",v; 


#5.5.4 
# 
# names = ["anne","beth","george","damon"]
# ages = [12,23,25,26,33];

# for name,age in zip(names,ages):
# 	print name ," is ", age, "years old";

# ----code replase
# strings = ["xxx3333","333","xxx333xx"];
# for string in strings:
# 	if "xxx" in string:
# 		index = strings.index(string)
# 		strings[index] = '[censored]'
# print strings;

# strings = ["xxx3333","333","xxx333xx"];
# index = 0
# for string in strings :
# 	if "xxx" in string:
# 		strings[index] = '[censored]'
# index += 1;

# print strings;

#----enumerate

# strings = ["xxx3333","333","xxx333xx"];
# for index ,string in enumerate(strings):
# 	if 'xxx' in string:
# 		strings[index] = 'censored'
# print strings;

#----reversed sorted


#5.5.5
#----1 break
# from math import sqrt
# for n in range(99,0,-1):
# 	root = sqrt(n)
# 	if root == int(root):
# 		print n
# 		break

#----2 continue

#----3 while True/break   wrongwrongwrongwrongwrongwrong
# While(True):
# 	word = raw_input("please enter a word: ")
# 	if not word: break
# 	print 'The word was ' + word;
# [x*x for x in range(10)]



#5.5.6
#---- for $ else
# for n in range(99,80,-1):
# from math import sqrt
# 	root = sqrt(n)
# 	if root == int(root):
# 		print n
# 		break
# else:
# 	print "Didn't find it ";

#5.7.3
#----1 exec and scope
# from math import sqrt
# exec "sqrt = 1"
# sqrt(4)

# from math import sqrt
# scope ={}
# exec "sqrt = 1" in scope
# sqrt(4)
# scope["sqrt"]


#----2 eval
